home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 4
/
The Arsenal Files 4 (Arsenal Computer).ISO
/
casm
/
au116-as.exe
/
UTIL
/
SPLITFIL.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-05
|
493b
|
23 lines
#include "..\au.hpp"
/***********************************************************************/
void split_file(char *full, char *path, char *file_name)
{
int k=0;
path[0] = '\0';
for (int j=strlen(full); j>=0; j--)
{
if (full[j]=='\\' || full[j]==':' || full[j]=='/')
{
while (k <= j)
{
path[k] = full[k];
k++;
}
path[k] = '\0';
break;
}
}
strcpy(file_name, full+k);
}